#ifndef MUG_H
#define MUG_H

#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <curses.h>   /* Curses library */

typedef struct wchat {
	WINDOW *wnd; /* Window container */
	int length, height;
	int lines, first;
	char** dialog;
} wchat;

extern wchat* env;

extern void addLine(char* feed, int format);
extern void getLine(char* buf, int size);
extern void loadWindow(void);
extern void unloadWindow(void);

#define AUTO          0
#define INDENT        1
#define HIGHLIGHT     2
#define JOIN          4
#define LEAVE         8
#define SERVER       16
#define DISCONNECTED 32

#endif /* !MUG_H */
